<?php
declare(strict_types=1);
/**
 * @project: 兔兔找图微信小程序
 * @author: kert
 * @date: 2023/5/16
 * @link: https://www.qqdeveloper.com/
 * @site: 微信搜索-兔兔找图
 */

namespace App\Models\Ai;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class AiApp extends BaseModel
{
    protected $table = "ai_app";

    protected $fillable = [
        "uid",
        "title",
        "orders",
        "group_uid",
        "is_show",
        "page_url",
        "url",
        "path",
        "bg_color",
    ];

    protected $casts = [
        "uid" => "string",
    ];

    public function group(): BelongsTo
    {
        return $this->belongsTo(AiGroup::class, "group_uid", "uid");
    }
}
